const Layout = () => import("@/layout/index.vue");
export default {
  path: "/permissions",
  component: Layout,
  meta: {
    title: "权限管理"
  },
  children: [
    {
      path: "/permissions/admin",
      name: "Admin",
      component: () => import("@/views/permissions/admin.vue"),
      meta: {
        title: "账户管理",
        // 通过设置showParent为true，显示父级
        showParent: true
      }
    }, {
      path: "/permissions/menu",
      name: "Menu",
      component: () => import("@/views/permissions/menu.vue"),
      meta: {
        title: "菜单管理",
        // 通过设置showParent为true，显示父级
        showParent: true
      }
    }, {
      path: "/permissions/roles",
      component: () => import("@/views/permissions/role.vue"),
      meta: {
        title: "角色管理",
        icon: "role",
        // 通过设置showParent为true，显示父级
        showParent: true
      }
    }, {
      path: "/permissions/cardType",
      name: "CardType",
      component: () => import("@/views/permissions/cardType.vue"),
      meta: {
        title: "证书分类",
        // 通过设置showParent为true，显示父级
        showParent: true
      }
    }, {
      path: "/permissions/sort",
      name: "Sort",
      component: () => import("@/views/permissions/sort.vue"),
      meta: {
        title: "薪资审核",
        // 通过设置showParent为true，显示父级
        showParent: true
      }
    }
  ]
};
